package com.ncs.leisure.overall.util;

import java.util.Date;
import java.util.Random;
import java.util.UUID;

/**
 * 
 * <p>算法集合</p>
 * 
 * @author Neo 2008 2008-9-3下午11:30:16
 *
 */

public class AlgorithmSet {
	
	static UUID uuid = UUID.randomUUID();
	
	static Random rnd=new Random(new Date().getTime());
	
	//获得整形随机数
	
	public static Integer getRandomInteger(){
				
		Integer rndInteger=new Integer(rnd.nextInt((int)Math.pow(10, 10)));
				
		return rndInteger;
		
	}
	
	//获得字符型随机数
	
	public static String getRandomString(){
		
		return uuid.toString();
		
		
	}
	
}
